package cn.jeeweb.web.modules.equipment.entity;

import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.ControlType;
import cn.xjzn.framework_Core.ModuleServe;
import com.baomidou.mybatisplus.annotations.TableField;

/**
 * 故障码bean
 */
public class EqsFaultCode extends DataEntity<String> implements ObjectMark {

    @TableField(value = "code")
    @UiPropertyField(moduleId = ModuleServe.eqsFaultCodeModule,propertyName = "code",labelText="原因编码",displayPosition =1)
    private String code;
    @TableField(value = "equipmentCatalogCode")
    @UiPropertyField(moduleId = ModuleServe.eqsFaultCodeModule,propertyName = "code",aliasName = "equipmentCatalogCode",labelText="设备分类编码",ownerPropertyName = "eqsEquipmentCatalog",isReference = 1,referenceModuleId = ModuleServe.equipmentCatalogModule,displayPosition =2)
    private String equipmentCatalogCode;
    @TableField(value = "equipmentFaultCode")
    @UiPropertyField(moduleId = ModuleServe.eqsFaultCodeModule,propertyName = "equipmentFaultCode",labelText="故障编码",controlType = ControlType.DICTSELECTCONTROL,dictCode = "shutdownType",displayPosition =3)
    private String equipmentFaultCode;
    @TableField(value = "equipmentCode")
    @UiPropertyField(moduleId = ModuleServe.eqsFaultCodeModule,propertyName = "code",aliasName = "equipmentCode",labelText="设备编码",ownerPropertyName = "eqsEquipment",isReference = 1,referenceModuleId = ModuleServe.equipmentModule,displayPosition =4)
    private String equipmentCode;

    @TableField(exist = false)
    private EqsEquipmentCatalog eqsEquipmentCatalog;

    @TableField(exist = false)
    private EqsEquipment eqsEquipment;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEquipmentCatalogCode() {
        return equipmentCatalogCode;
    }

    public void setEquipmentCatalogCode(String equipmentCatalogCode) {
        this.equipmentCatalogCode = equipmentCatalogCode;
    }

    public String getEquipmentFaultCode() {
        return equipmentFaultCode;
    }

    public void setEquipmentFaultCode(String equipmentFaultCode) {
        this.equipmentFaultCode = equipmentFaultCode;
    }

    public String getEquipmentCode() {
        return equipmentCode;
    }

    public void setEquipmentCode(String equipmentCode) {
        this.equipmentCode = equipmentCode;
    }

    public EqsEquipmentCatalog getEqsEquipmentCatalog() {
        return eqsEquipmentCatalog;
    }

    public void setEqsEquipmentCatalog(EqsEquipmentCatalog eqsEquipmentCatalog) {
        this.eqsEquipmentCatalog = eqsEquipmentCatalog;
    }

    public EqsEquipment getEqsEquipment() {
        return eqsEquipment;
    }

    public void setEqsEquipment(EqsEquipment eqsEquipment) {
        this.eqsEquipment = eqsEquipment;
    }
}